package cn.njxzc.examples;

import java.util.LinkedList;

public class Exam8_8 {
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public static void main(String[] args) {
		LinkedList queue = new LinkedList();
		queue.addFirst("Benz");
		queue.addFirst("Buick");
		queue.addFirst("Honda");
		queue.addFirst("Audi");
		queue.addFirst("Toyota");
		System.out.println(queue);
		queue.removeLast();
		queue.removeLast();
		System.out.println(queue);

	}

}